function TbPartners(params){ 
	 
}

TbPartners.Where = function(type,proxy){
	this.type = type;
	this.proxy=proxy;
	this.linked = null;
	this.set = null;
	if(this.type==0){
		this.set = new TbPartners.Where(1,true);
		this.set.linked = this;
	}
	this.getProxy = function(){
		var m = new TbPartners.Where(this.type);//当前的对像
		if(this.type==0){
			m.set = new TbPartners.Where(1,true);//set对象
			m.set.linked = m;
		}else{
			m.linked=this.linked;
			this.linked.linked=m;
		}
		return m;
	}
	this.data = {};
	this.put = function(key,value){
		this.data[key] = value;
	}
	this.get = function(key){
		return this.data[key];
	}
	
	
	/** 编号 [非空]       **/
	this.tbpId=function(tbpId){if(this.proxy)return this.getProxy().tbpId(tbpId);  this.put("tbpId", tbpId);return this;};
	/** and tbp_id is null */
	this.tbpIdNull=function(){if(this.proxy)return this.getProxy().tbpIdNull();if(this.get("tbpIdNot")==null)this.put("tbpIdNot", "");this.put("tbpId", null);return this;};
	/** not .... */
	this.tbpIdNot=function(){if(this.proxy)return this.getProxy().tbpIdNot();this.put("tbpIdNot", "not");return this;};
	this.tbpIdNotNull=function(){if(this.proxy)return this.getProxy().tbpIdNotNull();this.put("tbpIdNot", "not");this.put("tbpId", null);return this;};
	this.tbpIdNot=function(tbpId){if(this.proxy)return this.getProxy().tbpIdNot(tbpId);this.put("tbpIdNot", "not");this.put("tbpId", tbpId);return this;};
		
	/** and tbp_id <= ? */
	this.tbpIdMin=function(min){if(this.proxy)return this.getProxy().tbpIdMin(min);this.put("tbpIdMin", min);return this;};
	/** and tbp_id >= ? */
	this.tbpIdMax=function(max){if(this.proxy)return this.getProxy().tbpIdMax(max);this.put("tbpIdMax", max);return this;};
		
		
	this.tbpIdIn=function(ids){
		if(this.proxy)return this.getProxy().tbpIdIn(ids);  this.put("tbpIdIn", ids);return this;
	};	
		 
	
	
	/** 会员名称        **/
	this.nickName=function(nickName){if(this.proxy)return this.getProxy().nickName(nickName);  this.put("nickName", nickName);return this;};
	/** and nick_name is null */
	this.nickNameNull=function(){if(this.proxy)return this.getProxy().nickNameNull();if(this.get("nickNameNot")==null)this.put("nickNameNot", "");this.put("nickName", null);return this;};
	/** not .... */
	this.nickNameNot=function(){if(this.proxy)return this.getProxy().nickNameNot();this.put("nickNameNot", "not");return this;};
	this.nickNameNotNull=function(){if(this.proxy)return this.getProxy().nickNameNotNull();this.put("nickNameNot", "not");this.put("nickName", null);return this;};
	this.nickNameNot=function(nickName){if(this.proxy)return this.getProxy().nickNameNot(nickName);this.put("nickNameNot", "not");this.put("nickName", nickName);return this;};
		
		 
	
	
	/** 会员  [Member]      **/
	this.tbpMember=function(tbpMember){if(this.proxy)return this.getProxy().tbpMember(tbpMember);  this.put("tbpMember", tbpMember);return this;};
	/** and tbp_member is null */
	this.tbpMemberNull=function(){if(this.proxy)return this.getProxy().tbpMemberNull();if(this.get("tbpMemberNot")==null)this.put("tbpMemberNot", "");this.put("tbpMember", null);return this;};
	/** not .... */
	this.tbpMemberNot=function(){if(this.proxy)return this.getProxy().tbpMemberNot();this.put("tbpMemberNot", "not");return this;};
	this.tbpMemberNotNull=function(){if(this.proxy)return this.getProxy().tbpMemberNotNull();this.put("tbpMemberNot", "not");this.put("tbpMember", null);return this;};
	this.tbpMemberNot=function(tbpMember){if(this.proxy)return this.getProxy().tbpMemberNot(tbpMember);this.put("tbpMemberNot", "not");this.put("tbpMember", tbpMember);return this;};
		
		
	this.tbpMemberIn=function(ids){
		if(this.proxy)return this.getProxy().tbpMemberIn(ids);  this.put("tbpMemberIn", ids);return this;
	};	
		 
	
	
	/** 品牌  [Merchant]      **/
	this.tbpBrand=function(tbpBrand){if(this.proxy)return this.getProxy().tbpBrand(tbpBrand);  this.put("tbpBrand", tbpBrand);return this;};
	/** and tbp_brand is null */
	this.tbpBrandNull=function(){if(this.proxy)return this.getProxy().tbpBrandNull();if(this.get("tbpBrandNot")==null)this.put("tbpBrandNot", "");this.put("tbpBrand", null);return this;};
	/** not .... */
	this.tbpBrandNot=function(){if(this.proxy)return this.getProxy().tbpBrandNot();this.put("tbpBrandNot", "not");return this;};
	this.tbpBrandNotNull=function(){if(this.proxy)return this.getProxy().tbpBrandNotNull();this.put("tbpBrandNot", "not");this.put("tbpBrand", null);return this;};
	this.tbpBrandNot=function(tbpBrand){if(this.proxy)return this.getProxy().tbpBrandNot(tbpBrand);this.put("tbpBrandNot", "not");this.put("tbpBrand", tbpBrand);return this;};
		
		
	this.tbpBrandIn=function(ids){
		if(this.proxy)return this.getProxy().tbpBrandIn(ids);  this.put("tbpBrandIn", ids);return this;
	};	
		 
	
	
	/** 姓名        **/
	this.tbpName=function(tbpName){if(this.proxy)return this.getProxy().tbpName(tbpName);  this.put("tbpName", tbpName);return this;};
	/** and tbp_name is null */
	this.tbpNameNull=function(){if(this.proxy)return this.getProxy().tbpNameNull();if(this.get("tbpNameNot")==null)this.put("tbpNameNot", "");this.put("tbpName", null);return this;};
	/** not .... */
	this.tbpNameNot=function(){if(this.proxy)return this.getProxy().tbpNameNot();this.put("tbpNameNot", "not");return this;};
	this.tbpNameNotNull=function(){if(this.proxy)return this.getProxy().tbpNameNotNull();this.put("tbpNameNot", "not");this.put("tbpName", null);return this;};
	this.tbpNameNot=function(tbpName){if(this.proxy)return this.getProxy().tbpNameNot(tbpName);this.put("tbpNameNot", "not");this.put("tbpName", tbpName);return this;};
		
		 
	
	
	/** 手机号        **/
	this.tbpMobile=function(tbpMobile){if(this.proxy)return this.getProxy().tbpMobile(tbpMobile);  this.put("tbpMobile", tbpMobile);return this;};
	/** and tbp_mobile is null */
	this.tbpMobileNull=function(){if(this.proxy)return this.getProxy().tbpMobileNull();if(this.get("tbpMobileNot")==null)this.put("tbpMobileNot", "");this.put("tbpMobile", null);return this;};
	/** not .... */
	this.tbpMobileNot=function(){if(this.proxy)return this.getProxy().tbpMobileNot();this.put("tbpMobileNot", "not");return this;};
	this.tbpMobileNotNull=function(){if(this.proxy)return this.getProxy().tbpMobileNotNull();this.put("tbpMobileNot", "not");this.put("tbpMobile", null);return this;};
	this.tbpMobileNot=function(tbpMobile){if(this.proxy)return this.getProxy().tbpMobileNot(tbpMobile);this.put("tbpMobileNot", "not");this.put("tbpMobile", tbpMobile);return this;};
		
		 
	
	
	/** 上级        **/
	this.tbpTop=function(tbpTop){if(this.proxy)return this.getProxy().tbpTop(tbpTop);  this.put("tbpTop", tbpTop);return this;};
	/** and tbp_top is null */
	this.tbpTopNull=function(){if(this.proxy)return this.getProxy().tbpTopNull();if(this.get("tbpTopNot")==null)this.put("tbpTopNot", "");this.put("tbpTop", null);return this;};
	/** not .... */
	this.tbpTopNot=function(){if(this.proxy)return this.getProxy().tbpTopNot();this.put("tbpTopNot", "not");return this;};
	this.tbpTopNotNull=function(){if(this.proxy)return this.getProxy().tbpTopNotNull();this.put("tbpTopNot", "not");this.put("tbpTop", null);return this;};
	this.tbpTopNot=function(tbpTop){if(this.proxy)return this.getProxy().tbpTopNot(tbpTop);this.put("tbpTopNot", "not");this.put("tbpTop", tbpTop);return this;};
		
		 
	
	
	/** 上上级        **/
	this.tbpToptop=function(tbpToptop){if(this.proxy)return this.getProxy().tbpToptop(tbpToptop);  this.put("tbpToptop", tbpToptop);return this;};
	/** and tbp_toptop is null */
	this.tbpToptopNull=function(){if(this.proxy)return this.getProxy().tbpToptopNull();if(this.get("tbpToptopNot")==null)this.put("tbpToptopNot", "");this.put("tbpToptop", null);return this;};
	/** not .... */
	this.tbpToptopNot=function(){if(this.proxy)return this.getProxy().tbpToptopNot();this.put("tbpToptopNot", "not");return this;};
	this.tbpToptopNotNull=function(){if(this.proxy)return this.getProxy().tbpToptopNotNull();this.put("tbpToptopNot", "not");this.put("tbpToptop", null);return this;};
	this.tbpToptopNot=function(tbpToptop){if(this.proxy)return this.getProxy().tbpToptopNot(tbpToptop);this.put("tbpToptopNot", "not");this.put("tbpToptop", tbpToptop);return this;};
		
		 
	
	
	/** 性别        **/
	this.tbpSex=function(tbpSex){if(this.proxy)return this.getProxy().tbpSex(tbpSex);  this.put("tbpSex", tbpSex);return this;};
	/** and tbp_sex is null */
	this.tbpSexNull=function(){if(this.proxy)return this.getProxy().tbpSexNull();if(this.get("tbpSexNot")==null)this.put("tbpSexNot", "");this.put("tbpSex", null);return this;};
	/** not .... */
	this.tbpSexNot=function(){if(this.proxy)return this.getProxy().tbpSexNot();this.put("tbpSexNot", "not");return this;};
	this.tbpSexNotNull=function(){if(this.proxy)return this.getProxy().tbpSexNotNull();this.put("tbpSexNot", "not");this.put("tbpSex", null);return this;};
	this.tbpSexNot=function(tbpSex){if(this.proxy)return this.getProxy().tbpSexNot(tbpSex);this.put("tbpSexNot", "not");this.put("tbpSex", tbpSex);return this;};
		
		 
	
	
	/** 年龄        **/
	this.tbpAge=function(tbpAge){if(this.proxy)return this.getProxy().tbpAge(tbpAge);  this.put("tbpAge", tbpAge);return this;};
	/** and tbp_age is null */
	this.tbpAgeNull=function(){if(this.proxy)return this.getProxy().tbpAgeNull();if(this.get("tbpAgeNot")==null)this.put("tbpAgeNot", "");this.put("tbpAge", null);return this;};
	/** not .... */
	this.tbpAgeNot=function(){if(this.proxy)return this.getProxy().tbpAgeNot();this.put("tbpAgeNot", "not");return this;};
	this.tbpAgeNotNull=function(){if(this.proxy)return this.getProxy().tbpAgeNotNull();this.put("tbpAgeNot", "not");this.put("tbpAge", null);return this;};
	this.tbpAgeNot=function(tbpAge){if(this.proxy)return this.getProxy().tbpAgeNot(tbpAge);this.put("tbpAgeNot", "not");this.put("tbpAge", tbpAge);return this;};
		
		 
	
	
	/** 收入        **/
	this.tbpSr=function(tbpSr){if(this.proxy)return this.getProxy().tbpSr(tbpSr);  this.put("tbpSr", tbpSr);return this;};
	/** and tbp_sr is null */
	this.tbpSrNull=function(){if(this.proxy)return this.getProxy().tbpSrNull();if(this.get("tbpSrNot")==null)this.put("tbpSrNot", "");this.put("tbpSr", null);return this;};
	/** not .... */
	this.tbpSrNot=function(){if(this.proxy)return this.getProxy().tbpSrNot();this.put("tbpSrNot", "not");return this;};
	this.tbpSrNotNull=function(){if(this.proxy)return this.getProxy().tbpSrNotNull();this.put("tbpSrNot", "not");this.put("tbpSr", null);return this;};
	this.tbpSrNot=function(tbpSr){if(this.proxy)return this.getProxy().tbpSrNot(tbpSr);this.put("tbpSrNot", "not");this.put("tbpSr", tbpSr);return this;};
		
		 
	
	
	/** 职业        **/
	this.tbpZy=function(tbpZy){if(this.proxy)return this.getProxy().tbpZy(tbpZy);  this.put("tbpZy", tbpZy);return this;};
	/** and tbp_zy is null */
	this.tbpZyNull=function(){if(this.proxy)return this.getProxy().tbpZyNull();if(this.get("tbpZyNot")==null)this.put("tbpZyNot", "");this.put("tbpZy", null);return this;};
	/** not .... */
	this.tbpZyNot=function(){if(this.proxy)return this.getProxy().tbpZyNot();this.put("tbpZyNot", "not");return this;};
	this.tbpZyNotNull=function(){if(this.proxy)return this.getProxy().tbpZyNotNull();this.put("tbpZyNot", "not");this.put("tbpZy", null);return this;};
	this.tbpZyNot=function(tbpZy){if(this.proxy)return this.getProxy().tbpZyNot(tbpZy);this.put("tbpZyNot", "not");this.put("tbpZy", tbpZy);return this;};
		
		 
	
	
	/** 全称        **/
	this.tbpFullName=function(tbpFullName){if(this.proxy)return this.getProxy().tbpFullName(tbpFullName);  this.put("tbpFullName", tbpFullName);return this;};
	/** and tbp_full_name is null */
	this.tbpFullNameNull=function(){if(this.proxy)return this.getProxy().tbpFullNameNull();if(this.get("tbpFullNameNot")==null)this.put("tbpFullNameNot", "");this.put("tbpFullName", null);return this;};
	/** not .... */
	this.tbpFullNameNot=function(){if(this.proxy)return this.getProxy().tbpFullNameNot();this.put("tbpFullNameNot", "not");return this;};
	this.tbpFullNameNotNull=function(){if(this.proxy)return this.getProxy().tbpFullNameNotNull();this.put("tbpFullNameNot", "not");this.put("tbpFullName", null);return this;};
	this.tbpFullNameNot=function(tbpFullName){if(this.proxy)return this.getProxy().tbpFullNameNot(tbpFullName);this.put("tbpFullNameNot", "not");this.put("tbpFullName", tbpFullName);return this;};
		
		 
	
	
	/** 街道地址  [Region]      **/
	this.tbpJiedao=function(tbpJiedao){if(this.proxy)return this.getProxy().tbpJiedao(tbpJiedao);  this.put("tbpJiedao", tbpJiedao);return this;};
	/** and tbp_jiedao is null */
	this.tbpJiedaoNull=function(){if(this.proxy)return this.getProxy().tbpJiedaoNull();if(this.get("tbpJiedaoNot")==null)this.put("tbpJiedaoNot", "");this.put("tbpJiedao", null);return this;};
	/** not .... */
	this.tbpJiedaoNot=function(){if(this.proxy)return this.getProxy().tbpJiedaoNot();this.put("tbpJiedaoNot", "not");return this;};
	this.tbpJiedaoNotNull=function(){if(this.proxy)return this.getProxy().tbpJiedaoNotNull();this.put("tbpJiedaoNot", "not");this.put("tbpJiedao", null);return this;};
	this.tbpJiedaoNot=function(tbpJiedao){if(this.proxy)return this.getProxy().tbpJiedaoNot(tbpJiedao);this.put("tbpJiedaoNot", "not");this.put("tbpJiedao", tbpJiedao);return this;};
		
		
	this.tbpJiedaoIn=function(ids){
		if(this.proxy)return this.getProxy().tbpJiedaoIn(ids);  this.put("tbpJiedaoIn", ids);return this;
	};	
		 
	
	
	/** 审核理由        **/
	this.tbpLiyou=function(tbpLiyou){if(this.proxy)return this.getProxy().tbpLiyou(tbpLiyou);  this.put("tbpLiyou", tbpLiyou);return this;};
	/** and tbp_liyou is null */
	this.tbpLiyouNull=function(){if(this.proxy)return this.getProxy().tbpLiyouNull();if(this.get("tbpLiyouNot")==null)this.put("tbpLiyouNot", "");this.put("tbpLiyou", null);return this;};
	/** not .... */
	this.tbpLiyouNot=function(){if(this.proxy)return this.getProxy().tbpLiyouNot();this.put("tbpLiyouNot", "not");return this;};
	this.tbpLiyouNotNull=function(){if(this.proxy)return this.getProxy().tbpLiyouNotNull();this.put("tbpLiyouNot", "not");this.put("tbpLiyou", null);return this;};
	this.tbpLiyouNot=function(tbpLiyou){if(this.proxy)return this.getProxy().tbpLiyouNot(tbpLiyou);this.put("tbpLiyouNot", "not");this.put("tbpLiyou", tbpLiyou);return this;};
		
		 
	
	
	/** 经度        **/
	this.tbpLongitude=function(tbpLongitude){if(this.proxy)return this.getProxy().tbpLongitude(tbpLongitude);  this.put("tbpLongitude", tbpLongitude);return this;};
	/** and tbp_longitude is null */
	this.tbpLongitudeNull=function(){if(this.proxy)return this.getProxy().tbpLongitudeNull();if(this.get("tbpLongitudeNot")==null)this.put("tbpLongitudeNot", "");this.put("tbpLongitude", null);return this;};
	/** not .... */
	this.tbpLongitudeNot=function(){if(this.proxy)return this.getProxy().tbpLongitudeNot();this.put("tbpLongitudeNot", "not");return this;};
	this.tbpLongitudeNotNull=function(){if(this.proxy)return this.getProxy().tbpLongitudeNotNull();this.put("tbpLongitudeNot", "not");this.put("tbpLongitude", null);return this;};
	this.tbpLongitudeNot=function(tbpLongitude){if(this.proxy)return this.getProxy().tbpLongitudeNot(tbpLongitude);this.put("tbpLongitudeNot", "not");this.put("tbpLongitude", tbpLongitude);return this;};
		
		 
	
	
	/** 纬度        **/
	this.tbpLatitude=function(tbpLatitude){if(this.proxy)return this.getProxy().tbpLatitude(tbpLatitude);  this.put("tbpLatitude", tbpLatitude);return this;};
	/** and tbp_latitude is null */
	this.tbpLatitudeNull=function(){if(this.proxy)return this.getProxy().tbpLatitudeNull();if(this.get("tbpLatitudeNot")==null)this.put("tbpLatitudeNot", "");this.put("tbpLatitude", null);return this;};
	/** not .... */
	this.tbpLatitudeNot=function(){if(this.proxy)return this.getProxy().tbpLatitudeNot();this.put("tbpLatitudeNot", "not");return this;};
	this.tbpLatitudeNotNull=function(){if(this.proxy)return this.getProxy().tbpLatitudeNotNull();this.put("tbpLatitudeNot", "not");this.put("tbpLatitude", null);return this;};
	this.tbpLatitudeNot=function(tbpLatitude){if(this.proxy)return this.getProxy().tbpLatitudeNot(tbpLatitude);this.put("tbpLatitudeNot", "not");this.put("tbpLatitude", tbpLatitude);return this;};
		
		 
	
	
	/** 省        **/
	this.tbpProvince=function(tbpProvince){if(this.proxy)return this.getProxy().tbpProvince(tbpProvince);  this.put("tbpProvince", tbpProvince);return this;};
	/** and tbp_province is null */
	this.tbpProvinceNull=function(){if(this.proxy)return this.getProxy().tbpProvinceNull();if(this.get("tbpProvinceNot")==null)this.put("tbpProvinceNot", "");this.put("tbpProvince", null);return this;};
	/** not .... */
	this.tbpProvinceNot=function(){if(this.proxy)return this.getProxy().tbpProvinceNot();this.put("tbpProvinceNot", "not");return this;};
	this.tbpProvinceNotNull=function(){if(this.proxy)return this.getProxy().tbpProvinceNotNull();this.put("tbpProvinceNot", "not");this.put("tbpProvince", null);return this;};
	this.tbpProvinceNot=function(tbpProvince){if(this.proxy)return this.getProxy().tbpProvinceNot(tbpProvince);this.put("tbpProvinceNot", "not");this.put("tbpProvince", tbpProvince);return this;};
		
	/** and tbp_province <= ? */
	this.tbpProvinceMin=function(min){if(this.proxy)return this.getProxy().tbpProvinceMin(min);this.put("tbpProvinceMin", min);return this;};
	/** and tbp_province >= ? */
	this.tbpProvinceMax=function(max){if(this.proxy)return this.getProxy().tbpProvinceMax(max);this.put("tbpProvinceMax", max);return this;};
		
		
	this.tbpProvinceIn=function(ids){
		if(this.proxy)return this.getProxy().tbpProvinceIn(ids);  this.put("tbpProvinceIn", ids);return this;
	};	
		 
	
	
	/** 市        **/
	this.tbpCity=function(tbpCity){if(this.proxy)return this.getProxy().tbpCity(tbpCity);  this.put("tbpCity", tbpCity);return this;};
	/** and tbp_city is null */
	this.tbpCityNull=function(){if(this.proxy)return this.getProxy().tbpCityNull();if(this.get("tbpCityNot")==null)this.put("tbpCityNot", "");this.put("tbpCity", null);return this;};
	/** not .... */
	this.tbpCityNot=function(){if(this.proxy)return this.getProxy().tbpCityNot();this.put("tbpCityNot", "not");return this;};
	this.tbpCityNotNull=function(){if(this.proxy)return this.getProxy().tbpCityNotNull();this.put("tbpCityNot", "not");this.put("tbpCity", null);return this;};
	this.tbpCityNot=function(tbpCity){if(this.proxy)return this.getProxy().tbpCityNot(tbpCity);this.put("tbpCityNot", "not");this.put("tbpCity", tbpCity);return this;};
		
	/** and tbp_city <= ? */
	this.tbpCityMin=function(min){if(this.proxy)return this.getProxy().tbpCityMin(min);this.put("tbpCityMin", min);return this;};
	/** and tbp_city >= ? */
	this.tbpCityMax=function(max){if(this.proxy)return this.getProxy().tbpCityMax(max);this.put("tbpCityMax", max);return this;};
		
		
	this.tbpCityIn=function(ids){
		if(this.proxy)return this.getProxy().tbpCityIn(ids);  this.put("tbpCityIn", ids);return this;
	};	
		 
	
	
	/** 县        **/
	this.tbpCounty=function(tbpCounty){if(this.proxy)return this.getProxy().tbpCounty(tbpCounty);  this.put("tbpCounty", tbpCounty);return this;};
	/** and tbp_county is null */
	this.tbpCountyNull=function(){if(this.proxy)return this.getProxy().tbpCountyNull();if(this.get("tbpCountyNot")==null)this.put("tbpCountyNot", "");this.put("tbpCounty", null);return this;};
	/** not .... */
	this.tbpCountyNot=function(){if(this.proxy)return this.getProxy().tbpCountyNot();this.put("tbpCountyNot", "not");return this;};
	this.tbpCountyNotNull=function(){if(this.proxy)return this.getProxy().tbpCountyNotNull();this.put("tbpCountyNot", "not");this.put("tbpCounty", null);return this;};
	this.tbpCountyNot=function(tbpCounty){if(this.proxy)return this.getProxy().tbpCountyNot(tbpCounty);this.put("tbpCountyNot", "not");this.put("tbpCounty", tbpCounty);return this;};
		
	/** and tbp_county <= ? */
	this.tbpCountyMin=function(min){if(this.proxy)return this.getProxy().tbpCountyMin(min);this.put("tbpCountyMin", min);return this;};
	/** and tbp_county >= ? */
	this.tbpCountyMax=function(max){if(this.proxy)return this.getProxy().tbpCountyMax(max);this.put("tbpCountyMax", max);return this;};
		
		
	this.tbpCountyIn=function(ids){
		if(this.proxy)return this.getProxy().tbpCountyIn(ids);  this.put("tbpCountyIn", ids);return this;
	};	
		 
	
	
	/** 申请时间        **/
	this.tbpTime=function(tbpTime){if(this.proxy)return this.getProxy().tbpTime(tbpTime);  this.put("tbpTime", tbpTime);return this;};
	/** and tbp_time is null */
	this.tbpTimeNull=function(){if(this.proxy)return this.getProxy().tbpTimeNull();if(this.get("tbpTimeNot")==null)this.put("tbpTimeNot", "");this.put("tbpTime", null);return this;};
	/** not .... */
	this.tbpTimeNot=function(){if(this.proxy)return this.getProxy().tbpTimeNot();this.put("tbpTimeNot", "not");return this;};
	this.tbpTimeNotNull=function(){if(this.proxy)return this.getProxy().tbpTimeNotNull();this.put("tbpTimeNot", "not");this.put("tbpTime", null);return this;};
	this.tbpTimeNot=function(tbpTime){if(this.proxy)return this.getProxy().tbpTimeNot(tbpTime);this.put("tbpTimeNot", "not");this.put("tbpTime", tbpTime);return this;};
		
	/** and tbp_time >= ? */
	this.tbpTimeStart=function(start){if(this.proxy)return this.getProxy().tbpTimeStart(start);this.put("tbpTimeStart", start);return this;};			
	/** and tbp_time <= ? */
	this.tbpTimeEnd=function(end){if(this.proxy)return this.getProxy().tbpTimeEnd(end);this.put("tbpTimeEnd", end);return this;};
		
		 
	
	
	/** 是否购买卡    1:未购买 2:已购买     **/
	this.tbpPayCard=function(tbpPayCard){if(this.proxy)return this.getProxy().tbpPayCard(tbpPayCard);  this.put("tbpPayCard", tbpPayCard);return this;};
	/** and tbp_pay_card is null */
	this.tbpPayCardNull=function(){if(this.proxy)return this.getProxy().tbpPayCardNull();if(this.get("tbpPayCardNot")==null)this.put("tbpPayCardNot", "");this.put("tbpPayCard", null);return this;};
	/** not .... */
	this.tbpPayCardNot=function(){if(this.proxy)return this.getProxy().tbpPayCardNot();this.put("tbpPayCardNot", "not");return this;};
	this.tbpPayCardNotNull=function(){if(this.proxy)return this.getProxy().tbpPayCardNotNull();this.put("tbpPayCardNot", "not");this.put("tbpPayCard", null);return this;};
	this.tbpPayCardNot=function(tbpPayCard){if(this.proxy)return this.getProxy().tbpPayCardNot(tbpPayCard);this.put("tbpPayCardNot", "not");this.put("tbpPayCard", tbpPayCard);return this;};
		
		
	this.tbpPayCardIn=function(ids){
		if(this.proxy)return this.getProxy().tbpPayCardIn(ids);  this.put("tbpPayCardIn", ids);return this;
	};	
		 
	
	
	/** 审核状态    1:待处理 2:通过 3:不通过     **/
	this.tbpAuth=function(tbpAuth){if(this.proxy)return this.getProxy().tbpAuth(tbpAuth);  this.put("tbpAuth", tbpAuth);return this;};
	/** and tbp_auth is null */
	this.tbpAuthNull=function(){if(this.proxy)return this.getProxy().tbpAuthNull();if(this.get("tbpAuthNot")==null)this.put("tbpAuthNot", "");this.put("tbpAuth", null);return this;};
	/** not .... */
	this.tbpAuthNot=function(){if(this.proxy)return this.getProxy().tbpAuthNot();this.put("tbpAuthNot", "not");return this;};
	this.tbpAuthNotNull=function(){if(this.proxy)return this.getProxy().tbpAuthNotNull();this.put("tbpAuthNot", "not");this.put("tbpAuth", null);return this;};
	this.tbpAuthNot=function(tbpAuth){if(this.proxy)return this.getProxy().tbpAuthNot(tbpAuth);this.put("tbpAuthNot", "not");this.put("tbpAuth", tbpAuth);return this;};
		
		
	this.tbpAuthIn=function(ids){
		if(this.proxy)return this.getProxy().tbpAuthIn(ids);  this.put("tbpAuthIn", ids);return this;
	};	
		 
	
	
	/** 添加时间        **/
	this.tbpAddTime=function(tbpAddTime){if(this.proxy)return this.getProxy().tbpAddTime(tbpAddTime);  this.put("tbpAddTime", tbpAddTime);return this;};
	/** and tbp_add_time is null */
	this.tbpAddTimeNull=function(){if(this.proxy)return this.getProxy().tbpAddTimeNull();if(this.get("tbpAddTimeNot")==null)this.put("tbpAddTimeNot", "");this.put("tbpAddTime", null);return this;};
	/** not .... */
	this.tbpAddTimeNot=function(){if(this.proxy)return this.getProxy().tbpAddTimeNot();this.put("tbpAddTimeNot", "not");return this;};
	this.tbpAddTimeNotNull=function(){if(this.proxy)return this.getProxy().tbpAddTimeNotNull();this.put("tbpAddTimeNot", "not");this.put("tbpAddTime", null);return this;};
	this.tbpAddTimeNot=function(tbpAddTime){if(this.proxy)return this.getProxy().tbpAddTimeNot(tbpAddTime);this.put("tbpAddTimeNot", "not");this.put("tbpAddTime", tbpAddTime);return this;};
		
	/** and tbp_add_time >= ? */
	this.tbpAddTimeStart=function(start){if(this.proxy)return this.getProxy().tbpAddTimeStart(start);this.put("tbpAddTimeStart", start);return this;};			
	/** and tbp_add_time <= ? */
	this.tbpAddTimeEnd=function(end){if(this.proxy)return this.getProxy().tbpAddTimeEnd(end);this.put("tbpAddTimeEnd", end);return this;};
		
		 
	
	
	
	this.add=function(key,value) {if(proxy)return proxy().add(key,value);this.put(key, value);return this;}
	this.desc=function(sql) {if(proxy)return proxy().desc(sql);this.put("desc", sql);return this;}
	this.asc=function(sql) {if(proxy)return proxy().asc(sql);this.put("asc", sql);return this;}
	this.definex=function(sql) {if(proxy)return proxy().definex(sql);this.put("definex", sql);return this;}
	
	/** 获取所有合伙人信息 **/
	this.list=function(size){
		this.data.size = size;
		var protocol = ux.ajax("/admin/partner/partners.list.do",this.data);
		if(!protocol)return null;
		if(protocol.data && protocol.data.list)return protocol.data.list;
		return [];
	}
	/** 获取合伙人信息分页 **/
	this.page=function(page,size){
		this.data.size = size;
		this.data.page = page;
		var protocol = ux.ajax("/admin/partner/partners.list.do",this.data);
		if(!protocol)return null;
		if(protocol.data)return data;
		return {list:[]};
	}
	/** 根据查询条件取合伙人信息 **/
	this.get=function(){
		this.data.size = 1;
		var protocol = ux.ajax("/admin/partner/partners.list.do",this.data);
		if(!protocol)return null;
		if(protocol.data && protocol.data.list && protocol.data.list.length==1)return protocol.data.list[0]; 
		return null;
	}
}

TbPartners.get = function(id){
	var protocol = ux.ajax("/admin/partner/partners.get.do",{id:id});
	if(!protocol)return null;
	if(protocol.data)return protocol.data.tbPartners;
	return null;
}

TbPartners.where = new TbPartners.Where(0,true);